import * as ax from './request';

export const url = ax.url + '/op'
// export const url = ax.url

export const getMemberRechargeRuleList = (params) => {
    return ax.g(url + '/member/recharge/rules', params)
}

export const getMemberRechargeRule = (params) => {
    return ax.g(url + '/member/recharge/rules/' + params.id, params)
}

export const createMemberRechargeRule = (params) => {
    return ax.p(url + '/member/recharge/rules', params)
}

export const updateMemberRechargeRule = (params) => {
    return ax.u(url + '/member/recharge/rules/' + params.id, params)
}

export const delMemberRechargeRule = (params) => {
    return ax.d(url + '/member/recharge/rules/' + params.id, params)
}

export const prepay = (params) => {
  return ax.p(url + '/member/recharge/rules/prepay', params)
}

